package cn.zjutleo.village_server.exception.apiException.daoException;

import cn.zjutleo.village_server.constants.ApiExceptionCodes;
import cn.zjutleo.village_server.exception.apiException.DaoException;

/**
 * 数据库修改失败的异常类
 *
 * @author Ma Xiaofeng
 * @date : Created in 2021/12/08
 **/
public class UpdateException extends DaoException {
    public UpdateException() {
        super(ApiExceptionCodes.UPDATE_ERROR.getDesc(), ApiExceptionCodes.UPDATE_ERROR.getValue());
    }

    public UpdateException(String message) {
        super(message, ApiExceptionCodes.UPDATE_ERROR.getValue());
    }
}
